package org.msd.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class Reserve {//预定表
    private  int reserveid;//预定的id
    private String reservername;//预定的真实名字
    private int reservecommodity;//预定的房间id
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date Startingtime;//预定开始的时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeofdepartrueDate;//预定结束的时间
    private String phone;//预留的电话号码
    private String messags;//客服留言
    private String  identificationcard;//身份证号

    public void setMessags(String messags) {
        this.messags = messags;
    }

    public Date getStartingtime() {
        return Startingtime;
    }

    public Date getTimeofdepartrueDate() {
        return timeofdepartrueDate;
    }

    public int getReservecommodity() {
        return reservecommodity;
    }

    public int getReserveid() {
        return reserveid;
    }

    public String getMessags() {
        return messags;
    }

    public String getReservername() {
        return reservername;
    }

    public String getPhone() {
        return phone;
    }

    public void setStartingtime(Date startingtime) {
        this.Startingtime = startingtime;
    }

    public void setReservecommodity(int reservecommodity) {
        this.reservecommodity = reservecommodity;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setReserveid(int reserveid) {
        this.reserveid = reserveid;
    }

    public void setReservername(String reservername) {
        this.reservername = reservername;
    }

    public void setTimeofdepartrueDate(Date timeofdepartrueDate) {
        this.timeofdepartrueDate = timeofdepartrueDate;
    }

    public String getIdentificationcard() {
        return identificationcard;
    }

    public void setIdentificationcard(String identificationcard) {
        this.identificationcard = identificationcard;
    }

    @Override
    public String toString() {
        return "Reserve{" +
                "reserveid=" + reserveid +
                ", reservername='" + reservername + '\'' +
                ", reservecommodity=" + reservecommodity +
                ", Startingtime=" + Startingtime +
                ", timeofdepartrueDate=" + timeofdepartrueDate +
                ", phone='" + phone + '\'' +
                ", messags='" + messags + '\'' +
                ", identificationcard='" + identificationcard + '\'' +
                '}';
    }
}
